import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '小节id',
    align: "center",
    dataIndex: 'sectionId'
  },
  {
    title: '第几秒执行',
    align: "center",
    dataIndex: 'numberOfSeconds'
  },
  {
    title: '模式 1代表选择题  2代表知识点',
    align: "center",
    dataIndex: 'model'
  },
  {
    title: '题目',
    align: "center",
    dataIndex: 'title'
  },
  {
    title: '当为知识点时的内容',
    align: "center",
    dataIndex: 'content'
  },
  {
    title: '选项,存json',
    align: "center",
    dataIndex: 'option'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '小节id',
    field: 'sectionId',
    component: 'Input',
  },
  {
    label: '第几秒执行',
    field: 'numberOfSeconds',
    component: 'InputNumber',
  },
  {
    label: '模式 1代表选择题  2代表知识点',
    field: 'model',
    component: 'InputNumber',
  },
  {
    label: '题目',
    field: 'title',
    component: 'Input',
  },
  {
    label: '当为知识点时的内容',
    field: 'content',
    component: 'InputTextArea',
  },
  {
    label: '选项,存json',
    field: 'option',
    component: 'InputTextArea',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
